<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>健康分销系统</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="${contextPath}/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="${contextPath}/assets/css/amazeui.datatables.min.css"/>
    <link rel="stylesheet" href="${contextPath}/assets/css/app.css">
    <script src="${contextPath}/assets/js/jquery.min.js"></script>

</head>

<body data-type="login">
<script src="${contextPath}/assets/js/theme.js"></script>
<div class="am-g tpl-g">
    <div class="tpl-login">
        <div class="tpl-login-content">
            <div class="tpl-login-logo">
            </div>
            <form class="am-form tpl-form-line-form" action="${contextPath}/dologin.htm" method="post" id="myform">
                <div class="am-form-group">
                    <input type="text" class="tpl-form-input" name="loginName" id="loginName" placeholder="请输入账号" value="">
                </div>
                <div class="am-form-group">
                    <input type="password" class="tpl-form-input" name="password" id="password" placeholder="请输入密码" value="">
                </div>
                <!--<div class="am-form-group tpl-login-remember-me">-->
                    <!--<input id="remember-me" type="checkbox">-->
                    <!--<label for="remember-me">-->
                        <!--记住密码-->
                    <!--</label>-->
                <!--</div>-->
                <div class="am-form-group">
                    <button type="button"
                            class="am-btn am-btn-primary  am-btn-block tpl-btn-bg-color-success  tpl-login-btn" onclick="sub()">提交
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
<#include "/pc/common/alert.html" />
<script src="${contextPath}/assets/js/amazeui.min.js"></script>
<script src="${contextPath}/assets/js/app.js"></script>
<script>
    <#if errMessage?? && errMessage!=''>Malert('${errMessage}')</#if>
    function sub(){
        var loginName = $("#loginName").val();
        if(!loginName){
            alert("请输入用户名");
            return false;
        }
        var password = $("#password").val();
        if(!password){
            alert("请输入密码");
            return false;
        }
        $("#myform").submit();
    };
</script>
</body>
</html>